<!DOCTYPE html>
<html ng-app="">
  <head>
    <meta charset="UTF-8">
    <title>管理后台</title>
    <link rel="stylesheet" href="css/bootstrap.css" type="text/css" charset="utf-8">
    <link rel="stylesheet" href="css/datepicker3.css" type="text/css" charset="utf-8">
    <link rel="stylesheet" href="css/my.css" type="text/css" charset="utf-8">
    <link rel="stylesheet" href="css/load.css" type="text/css" charset="utf-8">
  </head>
  <body ng-controller="adminCtrl" ng-init="tab='init'" class="container">
    <div class="row">
      <div class="col-md-2 class-ul">
        <ul class="nav bs-sidenav bs-sidebar">
          <li><a href="./">返回首页</a></li>
          <li ng-click="tab='jiaoxuelouGuanLi'"><a>教学楼管理</a></li>
          <li ng-click="tab='jiaoshiGuanLi'"><a>教室管理</a></li>
          <li ng-click="tab='yonghuGuanLi'"><a>用户管理</a></li>
        </ul>
      </div>
      <div ng-show="tab=='init'" class="col-md-7 ng-row-top">
        <h1>请选择对应的模块</h1>
      </div>
      <div ng-show="tab=='jiaoxuelouGuanLi'" class="col-md-7 ng-row-top">
        <form ng-submit="clickJiaoxuelouSave()">
          <div ng-repeat="lou in jiaoxuelou" class="row">
            <input ng-value="lou.name"><span ng-click="jiaoxuelouDel($index)" class="glyphicon glyphicon-trash"></span><span>{{lou.id}}</span>
          </div>
          <div class="row">
            <input ng-model="jiaoxuelouNew"><span ng-click="jiaoxuelouAdd()" class="glyphicon glyphicon-floppy-disk"></span><span>{{$index}}</span>
          </div>
          <input type="submit">
        </form>
      </div>
      <div ng-show="tab=='jiaoshiGuanLi'" class="col-md-7 ng-row-top">
        <select ng-model="louNow" ng-options="lou.name for lou in jiaoxuelou">
          <option value="">请选择</option>
        </select>
        <form ng-submit="clickjiaoshiSave()" ng-show="louNow">
          <div ng-repeat="js in jiaoshi|filter:{jiaoxuelou_id:louNow.id}:true" class="row">
            <input ng-value="js.jiaoshi_name"><span ng-click="jiaoshiDel(js.jiaoshi_id)" class="glyphicon glyphicon-trash"></span>
          </div>
          <div class="row">
            <input ng-model="jiaoshiNew"><span ng-click="jiaoshiAdd()" class="glyphicon glyphicon-floppy-disk"></span>
          </div>
          <input type="submit">
        </form>
      </div>
      <div ng-show="tab=='yonghuGuanLi'" class="col-md-7 ng-row-top">
        <h1>用户管理</h1>
        <div class="row"><form class="form-inline" role="form">
  <div class="form-group">
    <input type="text" class="form-control" id="exampleInputEmail2" placeholder="用户名" ng-model="username1">
  </div>
  <div class="form-group">
    <input type="password" class="form-control" id="exampleInputPassword2" placeholder="密码" ng-model='password1'>
  </div>
  <button type="submit" class="btn btn-default" ng-click="userDo('userAdd')">添加用户</button>
  <button type="submit" class="btn btn-default" ng-click="userDo('userPassReset')">重置密码</button>
  <span class="alert">{{col1Msg}}</span>
</form>

<form class="form-inline" role="form">
  <div class="form-group">
    <input type="text" class="form-control" id="exampleInputEmail2" placeholder="用户名" ng-model='username2'>
  </div>
  <button type="submit" class="btn btn-default" ng-click=userDo('userDel')>删除用户</button>
  <button type="submit" class="btn btn-default" ng-click="userDo('setAdmin')">设为管理员</button>
  <button type="submit" class="btn btn-default" ng-click="userDo('cancelAdmin')">取消管理员</button>
  <span class="alert">{{col2Msg}}</span>
</form>

        </div>
      </div>
    </div>
    <script src="js/angular.js" type="text/javascript" charset="utf-8"></script>
    <script src="js/jquery-2.1.0.js" type="text/javascript" charset="utf-8"></script>
    <script src="js/bootstrap.js" type="text/javascript" charset="utf-8"></script>
    <script src="js/bootstrap-datepicker.js" type="text/javascript" charset="utf-8"></script>
    <script src="js/my.js" type="text/javascript" charset="utf-8"></script>
    <script src="js/admin.js" type="text/javascript" charset="utf-8"></script>
    <script src="js/angular-animate.js" type="text/javascript" charset="utf-8"></script>
  </body>
</html>